package com.itheima.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

@Data
@TableName("t_user")
public class User {

//    @TableId(type = IdType.AUTO) //指定主键id是自增长
    private Long id;
    private String name;
    @TableField(value = "pwd")
    private String password;
    private Integer age;
    private String tel;

    @TableField(exist = false) ////当前属性在表中没有对应的字段
    private String info;

    @TableLogic
    private Integer deleted;  //逻辑删除字段

}
